
		The SARACEN's Lightning Discharge v1.7

As many of you mod designers (even just nostalgic level authors!) will have noticed,
the Lightning Gun does NOT discharge all its cells explosively when fired
underwater. Not good, obviously (the only level I ever made for Quake I, and which I
plan to someday port to Quake III Hard Havoc, TOTALLY RELIES upon the discharge!).
So here I have supplied the means by which this problem may be rectified! Enjoy!!

====================================================================================

The following files contain the code.

cgame/cg_effects.c
cgame/cg_event.c
cgame/cg_local.h
cgame/cg_weapons.c

game/bg_public.h
game/g_combat.c
game/g_weapons.c

Search for entries marked with:		// The SARACEN

====================================================================================

Added in version 1.0:
	Server Code for Lightning Discharge
	Client Code for Lightning Explosion
Added in version 1.6:
	Actually ended up rewriting the client code (and a little of the server code,
too) to make the server send an event to the client (allows the client to view
discharge explosions that vary with the intensity of the discharge). Also corrected
some crashes caused by multiple attempts by the server to discharge a client's ammo.
Added in version 1.7:
	Client-side prediction of loss of ammo (haven't worked out how to predict the
explosion itself, though...)
	Also stopped the player gibbing from lightning attacks (thanks to Savage
Monkey for the idea!)

Like it? Bugs? Email thesaracen@ozemail.com.au or ICQ 59037191

====================================================================================

This is open source. Anyone who wishes to incorporate this Lightning Discharge into
their own mods may do so, just please give me credit. There is currently no way to
disable this feature in-game, but I don't see any reason to implement one.